//
//  TTUserModel.h
//  ExhibitionHall
//
//  Created by 王洋 on 2019/6/15.
//  Copyright © 2019 王洋. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface TTUserModel : NSObject

+ (TTUserModel *)sharedObject;

//初始化
- (void)initialization;


- (void)fillUserModelWithDic:(NSMutableDictionary *)userDic;


@property (nonatomic, strong) NSUserDefaults *userModelDefault;

//公司名
@property (nonatomic, readonly) NSString *companyName;

//用户ID
@property (nonatomic, readonly) NSString *userId;

//名片ID
@property (nonatomic, readonly) NSString *cardId;

//用户名
@property (nonatomic, readonly) NSString *userName;

//头像地址
@property (nonatomic, readonly) NSString *avatarUrl;

//手机号
@property (nonatomic, readonly) NSString *phone;

//登录token
@property (nonatomic, readonly) NSString *token;


@property (nonatomic, strong) NSData *deviceToken;

//是否是BOSS
@property (nonatomic, readonly) NSString *roleId;

//是否需要验证手机 1、需要验证
@property (nonatomic, readonly) BOOL authPhone;

//是否需要验证微信 1、需要验证
@property (nonatomic, readonly) BOOL authWx;

//定向推送用的，需要进入app的时候取，目前在登录的地方用到
@property (nonatomic, copy) NSString *clientId;

@property (nonatomic, readonly) NSArray *auths;

//IM_用户名
@property(nonatomic,readonly) NSString* identifier;
//IM鉴权
@property(nonatomic,readonly) NSString* userSig;
//App 用户使用 OAuth 授权体系分配的 Appid
@property(nonatomic,readonly) NSString* appidAt3rd;

@end

NS_ASSUME_NONNULL_END
